// MainDlg.h : interface of the CMainDlg class
//
/////////////////////////////////////////////////////////////////////////////

#pragma once
#include "stdafx.h"
#include "SkinInclude.h"

class CDlgMain : public CSkinFrameImpl<CDlgMain>
{
    BEGIN_MSG_MAP_EX( CDlgMain )
    CHAIN_MSG_MAP( CSkinFrameImpl<CDlgMain> )
    END_MSG_MAP()
private:
    CSkinImage* m_pImg;
public:
    CDlgMain()
    {

    }

    virtual ~CDlgMain()
    {

    }

    LRESULT MsgOnCreate()
    {

        // center the dialog on the screen
//		CenterWindow();

        CSkinImageGdiplus::InitGdiplus();

        m_pImg = new CSkinImageGdiplus;
        m_pImg->Load( _T( "G:\\Project\\360SafeRes\\start.png" ) );



        return TRUE;
    }

    void MsgOnPaint()
    {
        CPaintDC dc( m_hWnd );

        if ( NULL != m_pImg )
        {
            m_pImg->Draw( dc.m_hDC, 0, 0 );
        }
    }


};
